
#pragma once

//#include "header.h"
#include "MathHelper.h"


using namespace cgMath;

namespace cgGame
{

	class CObstacle
	{
	public:
		//CObstacle();
		CObstacle(cgVector2D pos = cgVector2D(0.0f, 0.0f), float range = 0.0f);
		virtual ~CObstacle();

		bool				IsCollision(cgVector2D pos, float range = 0.0f);

		//inline cgVector2D GetObjPos();
		cgVector2D			GetObjPos();
		void				SetObjPos(cgVector2D pos);
		//inline void SetObjPos(cgVector2D pos);
		float				GetObjRange();
		void				SetObjRange(float range);

		void				SetObjID(unsigned int id);
		unsigned int		GetObjID();

		void				SetObstacleType(Obstacle_Type obsType);
		Obstacle_Type		GetObstacleType();

	protected:
		cgMath::cgVector2D	m_position;
		
		float				m_range;
		unsigned int		m_objectID;

		//TODO    texture???
	private:
		Obstacle_Type		m_obstacleType;
	};
}